package com.tm.fiverole.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tm.fiverole.entity.UserEntity;
import com.tm.fiverole.entity.Vo.UserVo;
import com.tm.fiverole.result.Result;

/**
 * @author wangSang
 * @create 2022-08-18 14:47
 */
public interface UserService extends IService<UserEntity> {

    /**
     * 登录验证
     * @param user
     * @return
     */
    Result LogInUser(UserEntity user);

    /**
     * 查询用户
     * @param user
     * @return
     */
    Result queryUser(UserVo user);

    /**
     * 新增用户
     * @param user
     * @return
     */
    Result addUser(UserEntity user);

    /**
     * 修改用户
     * @param user
     * @return
     */
    Result updateUser(UserEntity user);
}
